<template>
  <div style="background-color:#999;margin-top:20px;padding:20px">
      <h2>子组件</h2>
      <input type="text" :value="value" @input="$emit('input',$event.target.value)">
      <span>{{value}}</span>
  </div>
</template>

<script>
export default {
    name:'Son',
    props:['value']
}
</script>

<style>

</style>